package dialer.ws.base.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * DontCall entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "dont_call", schema = "call_center")
public class DontCall implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -7863082640718493375L;
	private Integer id;
	private String callerId;
	private Timestamp dateIncome;
	private String status;

	// Constructors

	/** default constructor */
	public DontCall() {
	}

	/** minimal constructor */
	public DontCall(String callerId) {
		this.callerId = callerId;
	}

	/** full constructor */
	public DontCall(String callerId, Timestamp dateIncome, String status) {
		this.callerId = callerId;
		this.dateIncome = dateIncome;
		this.status = status;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "caller_id", nullable = false, length = 15)
	public String getCallerId() {
		return this.callerId;
	}

	public void setCallerId(String callerId) {
		this.callerId = callerId;
	}

	@Column(name = "date_income", length = 19)
	public Timestamp getDateIncome() {
		return this.dateIncome;
	}

	public void setDateIncome(Timestamp dateIncome) {
		this.dateIncome = dateIncome;
	}

	@Column(name = "status", length = 1)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}